<?php

class Zendhlt_View_Helper_Disqus extends Zend_View_Helper_Abstract {
	
	public function disqus($disqusUnixName) {
		
		$xhtml = "<div id=\"disqus_thread\"></div>";
		$xhtml .= "<script type=\"text/javascript\" src=\"http://disqus.com/forums/{$disqusUnixName}/embed.js\"></script>";
		$xhtml .= "<noscript><a href=\"http://{$disqusUnixName}.disqus.com/?url=ref\">";
        $xhtml .= "View the discussion thread.";
        $xhtml .= "</a></noscript>";
        $xhtml .= "<a href=\"http://disqus.com\" class=\"dsq-brlink\">blog comments powered by <span class=\"logo-disqus\">Disqus</span></a>";
        
        return $xhtml;
    }
}